<?php

use Phalcon\Mvc\Router;

$router = new Router();

$router->setDefaultNamespace('app\controllers');
$router->setDefaultController('shorturl');

$router->add('/{id:[0-9a-zA-Z]+}', [
    "controller" => "shorturl",
    "action"     => "original",
]);

return $router;